package com.example.demo.service;

import com.example.demo.entity.Role;
import com.example.demo.pojo.BSResult;

import java.util.List;

public interface RoleService {

    List<Role> findAllRoles();

    public BSResult updateRole_User(int userId,int[] roleIds);

    public void deleteRole_User(int userId);

    public int addRole(Role role);

    public int deleteByRoleId(Integer roleId);

    public Role findRoleById(Integer roleId);

    public int updateRole(Role role);
}
